package max.ta.data.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class StockQuote
	implements Serializable {

    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("d/M/yyyy");
    private static final long serialVersionUID = 1L;
    private Date date;
    private double open;
    private double high;
    private double low;
    private double close;
    private double volume;
    private double adjecentClose;

    public Date getDate() {
	return date;
    }

    public void setDate(Date date) {
	this.date = date;
    }

    public double getOpen() {
	return open;
    }

    public void setOpen(double open) {
	this.open = open;
    }

    public double getHigh() {
	return high;
    }

    public void setHigh(double high) {
	this.high = high;
    }

    public double getLow() {
	return low;
    }

    public void setLow(double low) {
	this.low = low;
    }

    public double getClose() {
	return close;
    }

    public void setClose(double close) {
	this.close = close;
    }

    public double getVolume() {
	return volume;
    }

    public void setVolume(double volume) {
	this.volume = volume;
    }

    public double getAdjecentClose() {
	return adjecentClose;
    }

    public void setAdjecentClose(double adjecentClose) {
	this.adjecentClose = adjecentClose;
    }

    @Override
    public String toString() {
	return "StockQuote [" + DATE_FORMAT.format(date) + " >>>" + date + " - L :" + low + " - O : " + open + " - C : " + close + " - H : " + high
		+ " - V : " + volume + " - AC : " + adjecentClose + "]";
    }
}
